package com.utils;

public class ThreadLocalUtils {

    private static ThreadLocal<Integer> uidTl = new ThreadLocal<>();

    public static void saveUid(Integer uid){
        uidTl.set(uid);
    }
    public static Integer getUid(){
        return uidTl.get();
    }
    public static void removeUid(){
        uidTl.remove();
    }
}
